package Music;

public class Man extends Violin{
    private String name;
    private String price;
    private String weight;
    public Man(String name,String price,String weight){
        super(name,price);
        this.name=name;                 //构造方法不能继承，需要重新定义，否则测试类中会显示该项为null。
        this.weight=weight;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrice() {
        return price;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getWeight() {
        return weight;
    }
}
